package day013.string;

public class Test01 {
    public static void main(String[] args) {
        String str="I love Java, I love Heima";

        System.out.println(str.contains("Java"));

        System.out.println(str.endsWith("Heima"));

        System.out.println(str.startsWith("Java"));

        System.out.println(str.indexOf("Java"));

        System.out.println(str.indexOf("itcast"));
    }
}
